//-----------------------------------------------------------------------------
// Bend2D - Physics Engine
// Roberto Bender <beto.bender@gmail.com>
// Description: 
// Date: 11/07/2010
//-----------------------------------------------------------------------------
#include "box.h"
using namespace bend2d;

Box::Box(const Rectangle& rectangle) : m_RectangleBox(rectangle)
{
    //SetGeometricForm(CollidableForm::eMovingPoint);
}

const Rectangle& Box::GetRectangle() const
{
      return m_RectangleBox;
}
      
void Box::SetRectangle(const Rectangle& rectangle)
{
     m_RectangleBox = rectangle;
}

void Box::SetPosition(const Point& point)
{
     m_RectangleBox.SetCenter(point);
}
 
const Point& Box::GetPosition() const
{
     return m_RectangleBox.GetCenter();
}

const Angle& Box::GetAngle() const
{
     return m_RectangleBox.GetAngle();
}

void Box::SetAngle(const Angle& angle)
{
     m_RectangleBox.SetAngle(angle);
}



